#ifndef _MY_NPC_4_H_
#define _MY_NPC_4_H_

#include "../enemy.h"
#include "path.h"

namespace fireplane
{
	class Path;
	class Gun;

	class NPC4 : public Enemy{
	public:
		NPC4(EnemyType type);
		~NPC4();

	public:
		virtual bool updateState(float dt);
		virtual void onInit(CreateArg* arg);
		virtual void destroy();
		virtual void onAttack();
		virtual void onCollision2Player();

		void _onAttack(int addHp);
	private:
		CCSprite* _sprite;
		bool _is_attak;
		float _attack_back_time;
		int _total_step;
		int _cur_step;
		CCPoint _next_pos;
		float _speed;

		Gun* _gun[3];
		float _fire_tick;
		bool _use_left_gun;

		float _fire_middle_gun_tick;

		bool _is_deading;
	};
}

#endif